package com.example.springaop.proxy;

public class HouseProxy implements SubjectHouse{

    private SubjectHouse subjectHouse;

    public HouseProxy(SubjectHouse subjectHouse) {
        this.subjectHouse = subjectHouse;
    }

    @Override
    public void rentHouse() {
        System.out.println("我是中介开始代理");

        subjectHouse.rentHouse();
        System.out.println("我是中介结束代理");

    }
}
